package com.etc.bvblog.entity;

import java.io.Serializable;

/**
 * 系统参数
 * @TableName mt_system_config
 */
public class MtSystemConfig implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 公司联系人
     */
    private String companyContacts;

    /**
     * 公司地址
     */
    private String companyAddress;

    /**
     * 公司电话
     */
    private String companyTel;

    /**
     * 公司传真
     */
    private String companyFax;

    /**
     * 公司邮编
     */
    private String companyPostCode;

    /**
     * 仓库启用标记，0未启用，1启用
     */
    private String depotFlag;

    /**
     * 客户启用标记，0未启用，1启用
     */
    private String customerFlag;

    /**
     * 负库存启用标记，0未启用，1启用
     */
    private String minusStockFlag;

    /**
     * 租户id
     */
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    private String deleteFlag;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 公司名称
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * 公司名称
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    /**
     * 公司联系人
     */
    public String getCompanyContacts() {
        return companyContacts;
    }

    /**
     * 公司联系人
     */
    public void setCompanyContacts(String companyContacts) {
        this.companyContacts = companyContacts;
    }

    /**
     * 公司地址
     */
    public String getCompanyAddress() {
        return companyAddress;
    }

    /**
     * 公司地址
     */
    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    /**
     * 公司电话
     */
    public String getCompanyTel() {
        return companyTel;
    }

    /**
     * 公司电话
     */
    public void setCompanyTel(String companyTel) {
        this.companyTel = companyTel;
    }

    /**
     * 公司传真
     */
    public String getCompanyFax() {
        return companyFax;
    }

    /**
     * 公司传真
     */
    public void setCompanyFax(String companyFax) {
        this.companyFax = companyFax;
    }

    /**
     * 公司邮编
     */
    public String getCompanyPostCode() {
        return companyPostCode;
    }

    /**
     * 公司邮编
     */
    public void setCompanyPostCode(String companyPostCode) {
        this.companyPostCode = companyPostCode;
    }

    /**
     * 仓库启用标记，0未启用，1启用
     */
    public String getDepotFlag() {
        return depotFlag;
    }

    /**
     * 仓库启用标记，0未启用，1启用
     */
    public void setDepotFlag(String depotFlag) {
        this.depotFlag = depotFlag;
    }

    /**
     * 客户启用标记，0未启用，1启用
     */
    public String getCustomerFlag() {
        return customerFlag;
    }

    /**
     * 客户启用标记，0未启用，1启用
     */
    public void setCustomerFlag(String customerFlag) {
        this.customerFlag = customerFlag;
    }

    /**
     * 负库存启用标记，0未启用，1启用
     */
    public String getMinusStockFlag() {
        return minusStockFlag;
    }

    /**
     * 负库存启用标记，0未启用，1启用
     */
    public void setMinusStockFlag(String minusStockFlag) {
        this.minusStockFlag = minusStockFlag;
    }

    /**
     * 租户id
     */
    public Long getTenantId() {
        return tenantId;
    }

    /**
     * 租户id
     */
    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    /**
     * 删除标记，0未删除，1删除
     */
    public String getDeleteFlag() {
        return deleteFlag;
    }

    /**
     * 删除标记，0未删除，1删除
     */
    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MtSystemConfig other = (MtSystemConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
            && (this.getCompanyContacts() == null ? other.getCompanyContacts() == null : this.getCompanyContacts().equals(other.getCompanyContacts()))
            && (this.getCompanyAddress() == null ? other.getCompanyAddress() == null : this.getCompanyAddress().equals(other.getCompanyAddress()))
            && (this.getCompanyTel() == null ? other.getCompanyTel() == null : this.getCompanyTel().equals(other.getCompanyTel()))
            && (this.getCompanyFax() == null ? other.getCompanyFax() == null : this.getCompanyFax().equals(other.getCompanyFax()))
            && (this.getCompanyPostCode() == null ? other.getCompanyPostCode() == null : this.getCompanyPostCode().equals(other.getCompanyPostCode()))
            && (this.getDepotFlag() == null ? other.getDepotFlag() == null : this.getDepotFlag().equals(other.getDepotFlag()))
            && (this.getCustomerFlag() == null ? other.getCustomerFlag() == null : this.getCustomerFlag().equals(other.getCustomerFlag()))
            && (this.getMinusStockFlag() == null ? other.getMinusStockFlag() == null : this.getMinusStockFlag().equals(other.getMinusStockFlag()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
        result = prime * result + ((getCompanyContacts() == null) ? 0 : getCompanyContacts().hashCode());
        result = prime * result + ((getCompanyAddress() == null) ? 0 : getCompanyAddress().hashCode());
        result = prime * result + ((getCompanyTel() == null) ? 0 : getCompanyTel().hashCode());
        result = prime * result + ((getCompanyFax() == null) ? 0 : getCompanyFax().hashCode());
        result = prime * result + ((getCompanyPostCode() == null) ? 0 : getCompanyPostCode().hashCode());
        result = prime * result + ((getDepotFlag() == null) ? 0 : getDepotFlag().hashCode());
        result = prime * result + ((getCustomerFlag() == null) ? 0 : getCustomerFlag().hashCode());
        result = prime * result + ((getMinusStockFlag() == null) ? 0 : getMinusStockFlag().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", companyName=").append(companyName);
        sb.append(", companyContacts=").append(companyContacts);
        sb.append(", companyAddress=").append(companyAddress);
        sb.append(", companyTel=").append(companyTel);
        sb.append(", companyFax=").append(companyFax);
        sb.append(", companyPostCode=").append(companyPostCode);
        sb.append(", depotFlag=").append(depotFlag);
        sb.append(", customerFlag=").append(customerFlag);
        sb.append(", minusStockFlag=").append(minusStockFlag);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", deleteFlag=").append(deleteFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}